home *** CD-ROM | disk | FTP | other *** search
-
- sub OnLoadSrcTgtMaps(strGuid, strType)
- if ((errorFlag and 3) <> 0) then
- exit sub
- end if
- Call GenerateSrcTgtMapsTable(strGuid, strType)
- if (GetLastHistoryText() = "") then
- SrcTgtMapsAnotText.innerText = ""
- else
- SrcTgtMapsAnotText.innerHTML = GetResString(77) & "<a class=""TableRowButton"" href language=""jscript"" onclick=""PopHistory()"">" & GetLastHistoryText() & "</a>"
- end if
- end sub
-
-
-
-
- ' **********************************************************
- ' GenerateSrcTgtMapsTable
- '
- ' Generates a chart showing the amount of data and index
- ' space used.
- ' **********************************************************
- sub GenerateSrcTgtMapsTable(ByVal strGuid, ByVal strType)
- Dim iNum
- Dim iMax
- Dim arrSources()
- Dim arrTargets()
- Dim strName
- Dim strDesc
-
- strHTML = "<table frame=""void"" class=""DBTable"" width=""100%"" cellpadding=""0"" cellspacing=""2"">"
- Call findSrcTgtGuidsSrc(arrSources, strGuid, strType, iMax)
- iMax = iMax - 1
- For iNum = 0 to iMax
- If (arrSources(iNum, 1) = "table") then
- Call getTableNameDesc(strName, strDesc, arrSources(iNum, 0))
- else
- Call getColumnNameDesc(strName, strDesc, arrSources(iNum, 0))
- End if
- strHTML = strHTML & GenerateSrcTgtRow(strName, strDesc, arrSources(iNum, 0), arrSources(iNum, 1))
- Next
- strHTML = strHTML & "</table>"
- document.all.SrcTgtMapsDataSrc.innerHTML = strHTML
-
- strHTML = "<table frame=""void"" class=""DBTable"" width=""100%"" cellpadding=""0"" cellspacing=""2"">"
- Call findSrcTgtGuidsTgt(arrTargets, strGuid, strType, iMax)
- iMax = iMax - 1
- For iNum = 0 to iMax
- If (arrTargets(iNum, 1) = "table") then
- Call getTableNameDesc(strName, strDesc, arrTargets(iNum, 0))
- else
- Call getColumnNameDesc(strName, strDesc, arrTargets(iNum, 0))
- End if
- strHTML = strHTML & GenerateSrcTgtRow(strName, strDesc, arrTargets(iNum, 0), arrTargets(iNum, 1))
- Next
- strHTML = strHTML & "</table>"
- document.all.SrcTgtMapsDataTgt.innerHTML = strHTML
- end sub
-
-
- Function GenerateSrcTgtRow(strName, strDesc, strGuid, strType)
- Dim strHTML
- Dim L_packageStr
- strName = MyHTMLEncode(strName)
- strDesc = MyHTMLEncode(strDesc)
-
- L_packageStr = GetResString(32)
- strHTML = ""
- strHTML = strHTML & "<tr>"
- strHTML = strHTML & " <td width=""50%"" valign=""top"">"
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <tr>"
- If (strType = "table") then
- strHTML = strHTML & " <td class=""DBTableText"" width=""24"" nowrap><img src=""reptbl.gif""></td>"
- strHTML = strHTML & " <td class=""DBTableText"" valign=""center""><a class=""TableRowButton"" href language=""jscript"" onclick=""ShowTableProp("" & strName & "","" & strGuid & "")"">" & strName & "</a></td>"
- else
- strHTML = strHTML & " <td class=""DBTableText"" width=""24"" nowrap><img src=""repcol.gif""></td>"
- strHTML = strHTML & " <td class=""DBTableText"" valign=""center""><a class=""TableRowButton"" href language=""jscript"" onclick=""ShowColumnProp("" & strName & "","" & strGuid & "")"">" & strName & "</a></td>"
- End if
- strHTML = strHTML & " </tr>"
- strHTML = strHTML & " </table>"
- strHTML = strHTML & " </td>"
- strHTML = strHTML & " <td>"
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <td class=""DBTableText"" align=""left"" valign=""top"">" & strDesc & "</td>"
- strHTML = strHTML & " <td class=""DBTableText"" valign=""top"" align=""right""><a class=""TableRowButton"" href language=""jscript"" onclick=""ShowSrcTgtPackageProp("" & strName & " " & L_packageStr & "","" & strGuid & "","" & strType & "")"">" & L_packageStr & "</a></td>"
- strHTML = strHTML & " </table>"
- strHTML = strHTML & " </td>"
- strHTML = strHTML & "</tr>"
- GenerateSrcTgtRow = strHTML
- End Function
-